<template>
	<view>
		
		<view class="box-bg-six">
			<span class="box1-bg-six"><span>{{title}}</span></span>
			<view style="margin-top: 66upx;">
				<slot />
			</view>
		</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		},
		props: {
			state: {
				type: Number,
				default: 1, //1:可用  2:已用 3：过期 
			},
			
			title: {
				type: String,
				default: '新到',
			},
			
			themeColor: {
				type: String,
				default: '#33CCCC',
			},
		},
		methods: {

		}
	};
</script>

<style lang="scss">
	
	.box-bg-six {
		display: flex;
		justify-content: center;
		margin-left: 10px;
		width: 94%;
		height: 150px;
		position: relative;
		margin-bottom: 30px;
		background-color: #EEEEEE;
		color: #FFFFFF;
		/* css变量 */
		--main-color: #F8463F;
		--f-color: #fff;
	}

	.box-bg-six:nth-child(even) {
		margin-right: 4%;
	}

	@media (max-width:500px) {
		.ribbon {
			width: 100%
		}

		.box-bg-six:nth-child(even) {
			margin-right: 0%;
		}
	}

	.box1-bg-six {
		position: absolute;
		top: -6px;
		right: 10px;
	}

	.box1-bg-six:after {
		position: absolute;
		content: "";
		display: block;
		width: 0;
		height: 0;
		border-left: 53px solid transparent;
		border-right: 53px solid transparent;
		border-top: 10px solid var(--main-color);
	}

	.box1-bg-six span {
		position: relative;
		display: inline-block;
		text-align: center;
		background: var(--main-color);
		font-size: 14px;
		line-height: 1;
		padding: 12px 8px 10px;
		border-top-right-radius: 8px;
		width: 90px;
	}

	.box1-bg-six span:before,
	.box1-bg-six span:after {
		position: absolute;
		content: "";
		display: block;
	}

	.box1-bg-six span:before {
		background: var(--main-color);
		height: 6px;
		width: 6px;
		left: -6px;
		top: 0;
	}

	.box1-bg-six span:after {
		background: var(--main-color);
		height: 6px;
		width: 8px;
		border-radius: 8px 8px 0 0;
		left: -8px;
		top: 0;
	}

	
	
</style>
